home *** CD-ROM | disk | FTP | other *** search
/ MacFormat España 13 / MacFormat n. 13 (Spain) / Macformat 13.bin / Shareware Internet / Desarrolladores / Extension Shell / Extension.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-01-06  |  2.0 KB  |  70 lines

  1. /*________________________________________________________
  2.  
  3.     File: Extension.h
  4.  
  5.     C header file for a printing extension.
  6.  
  7.     Dave Hersey
  8.     Apple Developer Technical Support
  9.  
  10.     12/01/92 - dmh - Created.
  11.      4/26/93 - dmh - Updated to use recommended approach
  12.                       to global data initialization.
  13.      9/05/93 - dmh - Updated for b2.
  14.                     - Fixed minor problem with highlighting
  15.                      of editText panel items.
  16.                    - Switched to Exception.h assertion stuff
  17.                      for error checking.
  18.     12/18/93 - dmh - Updated for b3.
  19.      3/22/94 - dmh - Updated for b4.
  20.  
  21.     (Note: labels are in the Mark menu.)
  22.     
  23. __________________________________________________________*/
  24.  
  25. #include <Types.h>
  26. #include <Errors.h>
  27. #include <Resources.h>
  28. #include <ToolUtils.h>
  29. #include <GXExceptions.h>
  30. #include <Collections.h>
  31. //#include <Messages.h>
  32. #include <PrintingManager.h>
  33. #include <PrintingMessages.h>
  34.  
  35.  
  36. #define kCreator                    'GExt'            /* Our creator type.            */
  37. #define kExtensionCollectionType    kCreator        /* The collection type we use.    */
  38.  
  39. #define r_ExtensionPanel            6000            /* The ID of our dialog panel.    */
  40. #define kExtensionTurnedOff            0                /* We're turned on.                */
  41. #define kExtensionTurnedOn            1                /* We're turned off.            */
  42.  
  43. #define kDefaultSetting            kExtensionTurnedOn    /* We're on by default.            */
  44.  
  45.  
  46. typedef struct ExtensionCollection                    /* This is our collection type.    */
  47. {
  48.     char    extTurnedOn;                            /* On/off panel item value.        */
  49.     char    fillByte;
  50. } ExtensionCollection;
  51.  
  52.  
  53. // Prototypes:
  54.  
  55. extern    long A5Size (void);                            /* We need these to set up        */
  56. extern    void A5Init (void *);                        /* our A5 world.                */
  57.  
  58. void __Startup__();
  59. OSErr    InitGlobalData(void);
  60. OSErr    NewInitialize(void);
  61. OSErr    NewShutDown(void);
  62. OSErr    NewSpoolPage(gxSpoolFile spFile, gxFormat aFormat, gxShape pgShape);
  63. OSErr    NewJobPrintDialog(gxDialogResult *dlogResult);
  64. OSErr    NewHandlePanelEvent(gxPanelInfoRecord *panelInfo,gxPanelResult *panelResult);
  65. OSErr    SetUpPrintPanel(void);
  66. OSErr    GetJobCollectionItem(void *collectItem, long *collectSize,
  67.                              OSType collectType, short collectID);
  68.  
  69.  
  70.